﻿@*In theory right here we are reaching into the IndexViewModel on the SmartPhoneViewModels page.*@

@model _2._12._2015_SmartPhone.Models.IndexViewModel
@using _2._12._2015_SmartPhone.Models

@{
    ViewBag.Title = "Home Page";
}



<div class="row">
    <div class="col-md-12">
        <table class="table table-bordered table-striped table-responsive">
            <tr>
                <th>Type</th>
                <th>Has GPS</th>
                <th>Makes Calls</th>
                <th>Assistant</th>
            </tr>
            @foreach(var s in Model.SmartPhones)
            {
                <tr>
                    <td>@s.GetType().Name</td>
                    <td>@s.Assistant</td>
                    <td>@(s.MakeCall ? "Yes" : "No")</td>
                    <td>@(s.HasGPS ? "Yes" : "No")</td>
                </tr>
            }
        </table>

    </div>
</div>